import React, { Component } from 'react';
import { Card, Carousel } from 'antd';

import './style.less';

class CarouselsPage extends Component {
  render(){
    return (
      <div>
        <Card title="文字背景轮播" className="pinlor-cards">
          <Carousel autoplay={true}>
            <div><h3>Ant Motion Banner - React</h3></div>
            <div><h3>Ant Motion Banner - Vue</h3></div>
            <div><h3>Ant Motion Banner - Angular</h3></div>
          </Carousel>
        </Card>
        <Card title="图片背景轮播" className="pinlor-cards slide-wrap">
          <Carousel autoplay={true} effect="fade">
            <div><img src={require('./images/carousel-1.jpg')} alt="" /></div>
            <div><img src={require('./images/carousel-2.jpg')} alt="" /></div>
            <div><img src={require('./images/carousel-3.jpg')} alt="" /></div>
          </Carousel>
        </Card>
      </div>
    )
  }
}

export default CarouselsPage;
